import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'works-';

export default {
    path: '/works',
    name: 'works',
    redirect: {
        name: `${pre}day`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'day',
            name: `${pre}day`,
            meta: {
                ...meta,
                title: '日报'
            },
            component: () => import('@/pages/works/day')
        }, {
            path: '/works/workDetails',
            name: `workDetails`,
            meta: {
                ...meta,
                title: '详情'
            },
            component: () => import('@/pages/works/workDetails')
        },    {
            path: 'week',
            name: `${pre}week`,
            meta: {
                ...meta,
                title: '周报'
            },
            component: () => import('@/pages/works/week')
        },  {
            path: 'month',
            name: `${pre}month`,
            meta: {
                ...meta,
                title: '月报'
            },
            component: () => import('@/pages/works/month')
        },
    ]
};
